package com.jxtc.enterprise.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Schema(description = "管理平台管理员为租户分配公司时需要传递的数据")
@Getter
@Setter
@ToString
public class AssignCompaniesToTenantDTO {
    @Schema(description = "公司 ID 列表", example = "[\"c752804d0cd410267f404dd3f0457a56\"]")
    @NotEmpty(message = "公司 ID 列表不能为空")
    private List<String> companyIds;

    @Schema(description = "目标租户 ID", example = "d752804d0cd410267f404dd3f0457a57")
    @NotBlank(message = "租户 ID 不能为空")
    private String tenantId;
}
